<?php
class template_user_control_panel_edit extends theme
{
	
	protected function head()
	{
	?>
<link type="text/css" rel="stylesheet" href="apps/user/templates/control_panel/css/edit.css">
<script type="text/javascript" language="javascript" src="apps/user/templates/control_panel/js/edit.js"></script>
	<?php
	}

	protected function center()
	{
		$user = $this->get('user');
		?>
<div class="center-title"><?php echo $this->get_title(); ?></div>
<div class="center-body">
	<?php $this->message(); ?>

	<div id="edit-form">
		<p><label class="item-title">用户名: </label><?php echo $user->username; ?></p>
		<p><label class="item-title">邮箱: </label><?php echo $user->email; ?></p>
		<p><label class="item-title">名字: </label><input type="text" name="name" id="name" value="<?php echo $user->name; ?>" size="15" maxlength="30" /></p>
		<p><label class="item-title">&nbsp;</label><input type="button" id="submit" value="保存" onclick="javascript:save();"/></p>
	</div>
	
	<p id="edit-msg"></p>
</div>
		<?php
	}		
		

}
?>